package com.example.mykotlin

import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.beans.factory.annotation.Value
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.core.env.Environment

@SpringBootTest
class MykotlindemoApplicationTests {

    @Autowired
    lateinit var environment: Environment

    @Value("\${sa-token.timeout1:3600}")
    private var timeOut: Int = 3600

    @Test
    fun contextLoads() {
        println(timeOut)

    }

    @Test
    fun test1() {
        println(environment.getProperty("spring.application.name"))
    }


    @Test
    fun test2() {

    }

}
